package com.xh.bussiness.resource.service;



import com.xh.bussiness.resource.bean.dto.MaterialDto;
import com.xh.bussiness.resource.bean.request.MaterialPrepareRequest;
import com.xh.bussiness.resource.model.MaterialPrepare;
import com.xh.core.service.IBaseService;
import com.xh.core.bean.XhPage;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Pitt
 * @since 2020-12-18
 */
public interface IMaterialPrepareService extends IBaseService<MaterialPrepare> {

    /**
     * 分页查询方法
     * @param page
     * @param bean
     * @return
     */
    public XhPage queryMaterialPreparePage(XhPage page, MaterialPrepareRequest bean);

    /**
     * 查询方法
     * @param bean
     * @return
     */
    public List queryMaterialPrepare(MaterialPrepareRequest bean);

    Map<String, Long> queryCountByType(String courseIndexId, String userId);

    List<MaterialDto> queryMaterialByCourseIndex(String userId, String courseIndexId, Integer type);

    void deletePrepareMaterial(String courseIndexId, String materialId);
}
